package com.keon.jianbao.ui.fragment;

import android.view.View;

import com.keon.jianbao.adapter.ReviewListAdapter;
import com.keon.jianbao.api.ApiHttpClient;
import com.keon.jianbao.base.BaseListAdapter;
import com.keon.jianbao.base.BaseListFragment;
import com.keon.jianbao.bean.ListEntity;
import com.keon.jianbao.bean.ReviewList;

/**
 * Created by keon on 2015/9/8.
 */
public class ReviewListFragment extends BaseListFragment {

    @Override
    protected void sendRequestData() {
        ApiHttpClient.g("http://www.baidu.com", mHandler);
    }

    @Override
    protected ListEntity parseList(String reponseData) {

        ReviewList reviewList = new ReviewList(reponseData);

        return reviewList;
    }

    @Override
    protected BaseListAdapter getListAdapter() {
        return new ReviewListAdapter();
    }

    @Override
    public void initData() {

    }

    @Override
    public void onClick(View view) {

    }

    @Override
    protected String getCacheKeyPrefix() {
        return "REVIEWLIST";
    }
}
